// 头条的item组件,可能底部蓝色标签是可选的
<template>
    <div class="news_item top">
        <!-- 大图片 -->
        <div class="img">
            <img src="../../../assets/img/856.jpg" alt="">
        </div>
        <!-- 大标题 -->
        <div class="title">
            <a href="#">习近平出席金砖国家工商论坛，强调推动金砖合作再出发</a>
        </div>
        <!-- 时间评论热度 -->
        <div class="info">
            <span class="time">5小时前</span>
            <span class="comments">31</span>
            <span class="hot">头条</span>
        </div>
    </div>
</template>
<script>
export default {
  props: ["news"]
};
</script>

<style lang="less">
@rem: 72rem;
.top {
  width: 100%;
  border-bottom: 1px solid #e9e9e9;
  > .img {
    height: 300 / @rem;
    width: 100%;
    > img {
      height: 100%;
    }
  }
  > .title {
    padding: 5px 0 5px 10px;
    font-size: 20em;
  }
  > .info {
    padding-left: 15px;
    padding-bottom: 5px;
    font-size: 10em;
    color: #b4b4b4;
    line-height: 18px;
    >.hot{
        color: #00a5eb;
        line-height: 16px;
        float:right;
        margin-right: 10px;
        border: 1px solid #00a5eb;
        padding: 0 2px;
        border-radius: 4px;
    }
  }
}
</style>

